package com.xiaoge.service.impl;

import com.xiaoge.entity.Log;
import com.xiaoge.mapper.LogMapper;
import com.xiaoge.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: springboot-vue
 * @description: LogService实现类
 * @author: Mr.Nie
 * @create: 2022-05-12 15:47
 **/
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    /**
     * 保存登入日志
     * @param log
     */
    @Override
    public void saveLog(Log log) {
        logMapper.insert(log);
    }
}
